package main

import (
	"fmt"
)

type Person struct{
	Name string 
	Age int 
	Address string 
	scores [5]float64
	ptr *int
	citys []string 
	hobby map[string]string
}
func main(){


	var p Person 
	if p.ptr ==nil{
		fmt.Println("ptr nil")
	}
	if p.citys == nil{
		fmt.Println("citys nil")
	}
	if p.hobby == nil{
		fmt.Println("hobby nil")
	}

	p.ptr = new(int)
	p.citys = make([]string,10)
	p.citys[0]="china"
	p.citys[1]="beijing"

	p.hobby = make(map[string]string)
	p.hobby["age"]="100"
	p.hobby["name"]="tom"

	fmt.Println(p)

	p2:=p 
	p2.hobby["age"]="200"
	p2.hobby["name"]="jack"
	

	fmt.Println(p2)
}